FROM golang:alpine

LABEL MAINTAINER="lg18151768346@163.com"

ENV GO111MODULE=on \
    CGO_ENABLED=0 \
    GOOS=linux \
    GOARCH=amd64 \
	GOPROXY="https://goproxy.cn,direct"

COPY . /server
WORKDIR /server

RUN go build -o server .

EXPOSE 8888
ENTRYPOINT ./server
